package com.ad.sponsor.dao;

import com.ad.sponsor.entity.AdUser;
import org.springframework.data.jpa.repository.JpaRepository;

/**
 * @author: megan
 * @mail: meganmail@vip.qq.com
 * @date: 2019/3/28 16:16
 * @version: v1.0
 * @description: 用户的增删改查
 */
public interface AdUserRepository extends JpaRepository<AdUser, Long> {

    /**
     * 根据用户名查询用户
     *
     * @param username
     * @return
     */
    AdUser findByUsername(String username);

}
